import request from "@/utils/request";

// 查询BCompanyinfo列表
export function listBCompanyinfo(query) {
  return request({
    url: "/api/v1/bcompanyinfoList",
    method: "get",
    params: query
  });
}

// 查询BCompanyinfo详细
export function getBCompanyinfo(companyId) {
  return request({
    url: "/api/v1/bcompanyinfo/" + companyId,
    method: "get"
  });
}

// 新增BCompanyinfo
export function addBCompanyinfo(data) {
  return request({
    url: "/api/v1/bcompanyinfo",
    method: "post", 
    data: data
  });
}

// 修改BCompanyinfo
export function updateBCompanyinfo(data) {
  return request({
    url: "/api/v1/bcompanyinfo",
    method: "put",
    data: data
  });
}

// 删除BCompanyinfo
export function delBCompanyinfo(companyId) {
  return request({
    url: "/api/v1/bcompanyinfo/" + companyId,
    method: "delete"
  });
}
